﻿using Avalon.Core.Data;
using Avalon.Core.MVC.Attributes;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Avalon.Data.Models
{
    [ControllerName("Flubber")]
    [EntityDescriptionAttribute(Title = "Klas", Description = "Dit is een klas.")]
    public class Klas : ContentItem
    {
        [Required]
        [StringLength(50, MinimumLength = 2)]
        public string Code { get; set; }

        public virtual ICollection<Student> Studenten { get; set; }

        public virtual ICollection<Docent> Docenten { get; set; }
    }
}
